package com.dt.dubai.gaug.entity;

import com.dt.dubai.core.comm.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.*;

import javax.persistence.Table;
import javax.validation.constraints.*;


/*
 * 委托检测报告记录表
 */

@Data
@Table(name = "dt_gaug_entrust_report")
@EqualsAndHashCode(callSuper = false)
public class GaugEntrustReportEntity extends BaseEntity {

    //报告名称
    @Length(min = 0, max = 60, message = "reportName参数最大长度不60")
    String reportName;

    //报告编号
    @Length(min = 0, max = 18, message = "reportNo参数最大长度不18")
    String reportNo;

    //报告图章 1-无,2-CNAS,3-CNAS,4-CNAS_CMA
    Integer reportStamp;

    //报告PDF
    @Length(min = 0, max = 60, message = "reportResultPdfUrl参数最大长度不60")
    String reportResultPdfUrl;

    //报告类型 1-中文,2-英文,3-中英,4-双语,5-中双语,6-英双语,7-全部
    Integer reportType;

    //检测状态 1-已下订单,2-已接单,3-检测中,4-已检毕,5-报告完成
    Short accountsStatus;

    //检测费用
    Integer checkCost;

    //报告费用
    Integer reportCost;

    //其它费用
    Integer otherCost;

    //作废状态 0-否,1-是
    Boolean abolishStatus;

    //作废原因
    @Length(min = 0, max = 200, message = "abolishReason参数最大长度不200")
    String abolishReason;

    //备注
    @Length(min = 0, max = 250, message = "remark参数最大长度不250")
    String remark;


}
